//////////////////////////////////////////////
// Logger.js
//
//////////////////////////////////////////////

/// Class ------------------------------------
	
nkLogTests.Logger = class Logger extends nkDebug.TestClass
{
	static instance = new Logger ("nkLogTests.loggers") ;

	nkTests =
	{
		InheritFromJs : function ()
		{
			// Witness of call
			var called = false ;

			// Create a class inheriting from it
			class TestLogger extends nkLog.Logger
			{
				log (m, c)
				{
					called = true ;
				}
			} ;

			// Check we can instantiate it
			const l = new TestLogger () ;
			l.log("Test", "Check") ;
			nkDebug.TestUtils.check(called) ;

			// Free (unmanaged extension)
			l.delete() ;
		}
	}
}